package com.jzo2o.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.jzo2o.customer.model.dto.request.CertificationAuditReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.WorkerCertificationAuditResDTO;

import java.util.HashMap;

public interface IWorkerCertificationAuditService extends IService<WorkerCertificationAudit> {

    /**
     * 服务人员提交认证审核申请
     * @param workerCertificationAuditAddReqDTO
     */
    void auditSubmit(WorkerCertificationAuditAddReqDTO workerCertificationAuditAddReqDTO);

    /**
     * 查询最新的驳回原因
     *
     * @return
     */
    HashMap<String, String> rejectReason();

    /**
     * 审核服务人员认证分页查询
     * @param workerCertificationAuditPageQueryReqDTO
     * @return
     */
    PageResult<WorkerCertificationAuditResDTO> pageQueryWorkerAudit(WorkerCertificationAuditPageQueryReqDTO workerCertificationAuditPageQueryReqDTO);

    /**
     * 审核服务人员认证
     * @param id
     * @param certificationAuditReqDTO
     */
    void audit(Long id, CertificationAuditReqDTO certificationAuditReqDTO);
}
